package com.jinzhi.common.constants;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: mcf
 * @CreateTime: 2024/06/12
 * @Description: 消息枚举
 */
@AllArgsConstructor
@Getter
public enum MessagesEnum {

    /**
     * 系统消息
     */

    MESSAGE_101 ("您发布的用人需求已接单了，请立即查看",101,"SMS_472050203"),

    MESSAGE_102 ("简历审核已通过，请开始接单吧!",102,null),

    MESSAGE_103 ("简历审核未通过，",103,null) ,

    MESSAGE_104 ("简历正在审核中，请耐心等待",104,null) ,

    MESSAGE_105 ("住宿审核已通过，可以开始入住了！",105,"SMS_472030038"),

    MESSAGE_106 ("住宿审核已拒绝，拒绝原因",106,null),

    MESSAGE_107 ("您发布的用人需求审核已通过，请立即查看",107,null),

    MESSAGE_108 ("您发布的用人需求审核已拒绝，拒绝原因为",108,null),

    MESSAGE_109 ("您有一条合同待签署，点击去签署！",109,"SMS_468480016"),

    MESSAGE_110 ("您有一条新的需求订单,请立即查看",110,"SMS_472020180"), //用户端

    MESSAGE_111 ("您有一条新的服务订单,请立即查看",111,"SMS_472020180"),//阿姨端

    MESSAGE_112 ("您购买的商品即将到期，请尽快使用",112,"SMS_472170170"),

//    MESSAGE_113 ("您发布的用人需求已有人预约，请立即查看",113,null),

    /**
     * 订单消息
     */

    MESSAGE_201 ("您的邀约面试信息已发送，请耐心等待！",201,null),

    MESSAGE_202 ("您的邀约面试信息已同意，请查看！",202,"SMS_472115158"),

    MESSAGE_203 ("您的邀约面试信息已拒绝，请查看！",203,null),

    MESSAGE_204 ("顾客向您发起了面试邀约！",204,"SMS_468440705"),

    MESSAGE_213 ("后台向您发起了面试邀约！",213,"SMS_468440705"),

    MESSAGE_205 ("您的需求订单已转让，请查看！",205,null),

    MESSAGE_206 ("您的订单已转让，请查看！",206,"SMS_468395771"),

    MESSAGE_207 ("您的订单已分配阿姨，请及时查看！",207,null),

    MESSAGE_208 ("已为您分配一个服务订单，请及时查看！",208,"SMS_468395771"),

    MESSAGE_215 ("您的服务订单已续费，请及时查看！",215,"SMS_471920220"),

    MESSAGE_214 ("您服务的订单已续费，请及时查看！",214,"SMS_471920220"),

    MESSAGE_216 ("您的服务订单已结束，请及时查看！",216,"SMS_472405427"),

    MESSAGE_217 ("您服务的订单已结束，请及时查看！",217,"SMS_472435450"),

    MESSAGE_209 ("您的面试结果通过",209,null),

    MESSAGE_211 ("您的面试结果拒绝",211,null),

    MESSAGE_210("您发布面试信息阿姨的面试结果",210,null),

    MESSAGE_212 ("系统向您分配一条新的服务订单，请查看！",212,"SMS_468395771"),

    MESSAGE_218 ("后台取消了面试邀约！",218,"SMS_472285094"),

    MESSAGE_219 ("您的面试邀约已修改，新的邀约请查收！",219,"SMS_472345079"),

    MESSAGE_220 ("您的报名信息已审核通过,请前往小程序我的-大赛报名中查看！",220,"SMS_472410480"),

    MESSAGE_221 ("您的报名信息审核未通过，请前往小程序我的-大赛报名中查看！",221,"SMS_472385446")

    ;
    
    

    private final String msg;

    private final Integer num;

    private final String code;


    public static String findByNum(Integer num) {
        for (MessagesEnum messagesEnum : MessagesEnum.values()) {
            if (messagesEnum.getNum()==num) {
                return messagesEnum.getCode();
            }
        }
        return null;
    }


}
